package xiyun.common.utils.DBUtils.secondary;

import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;

public class SecondaryTableUtil {

    public static void copyAsChildren(List<?> list1,Class<?> clazz1,List<?> list2,Class<?> clazz2) throws ClassNotFoundException {
        Class clazz = Class.forName(clazz1.getName());
        Field[] declaredFields = clazz.getDeclaredFields();
        for (Field declaredField : declaredFields) {
            System.out.println(declaredField.getGenericType().getTypeName());
        }
    }
}
